package com.example.business_oa.controller;

import com.example.business_oa.service.UpdateSalaryPerson;
import com.example.comment_oa.response.AjaxResponse;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@CrossOrigin
@RequestMapping("/businessOa")
public class UpdateSalaryController {
    @Resource
    UpdateSalaryPerson updateSalaryPerson;

    @PutMapping("/xiugaixinzi/{salary}/{empId}")
    public AjaxResponse xiugaixinzi(@PathVariable("salary")int salary,@PathVariable("empId") int empId){
        updateSalaryPerson.xiugaixinzi(salary,empId);
        return AjaxResponse.success();
    }

}
